import React, { Component } from "react";

class App extends Component {
  render() {
    return (
      <div>
        <span>App123</span>
        {/* <tempCmp></tempCmp> */}
      </div>
    );
  }
}

App.displayName = "Xjh";

// 很简单的一个参数之间的传递操作。。
function enhanceComponent(Cmp) {
  class New extends Component {
    // 进行props的传递也是很简单的.
    render() {
      return <Cmp {...this.props}></Cmp>;
    }
  }
  New.displayName = "Kobe";
  return New;
}

const tempCmp = enhanceComponent(App);

export default tempCmp;
